package com.unitspirit.sample.cmbchina;

import cn.luischen.dao.UserDao;
import cn.luischen.exception.BusinessException;
import cn.luischen.model.UserDomain;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class UserServiceImpl4 {

    @NonNull 
    private UserDao userDao_NonNull;

    public int updateUserInfoabc(UserDomain user) {
        if (null == user.getUid())
            throw BusinessException.withErrorCode("用户编号不可能为空");
        return userDao_NonNull.updateUserInfo(user);
    }
}
